import request from "./request.js";



/**
 * 
 * @param {} model 
 * @returns
 * 
 * 登录模块 
 */
const getLogin = (msg) => {
    let data = request.post('/login', msg)
    return data
}

// 左侧菜单
const getMenus = () => request.get('menus')


//商品列表
const goodsLis = (queryModel) => request.get('goods', { params: queryModel })

//商品分类
const getList = (queryModel) => request.get(`categories`, {
    params: queryModel
})
export {
    getLogin,
    getMenus,
    goodsLis,
    getList

}
